package Level02;

import java.util.HashMap;
import java.util.Scanner;

public class Nine {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一段英语");
        String nextLine = scanner.nextLine();
        HashMap<String, Integer> hashMap = new HashMap<>();
        String[] split = nextLine.split(" ");
        for (String str : split) {
            hashMap.put(str,hashMap.getOrDefault(str,0)+1);
        }
        System.out.println(hashMap);
    }
}
